/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/phone/ConfigManager.h,v 1.5 2003/11/21 12:39:24 itsme Exp $
 *
 *
 */


#ifndef __CONFIGMANAGER_H__

#include "stringutils.h"    // for IntegerStringMap

char *CFGPhoneDeviceName(int cfgtype);

class ConfigManager {
public:
    ConfigManager();

    // called from main app 
    void Init();

    // called from dialog.
    bool NextCallType();
    bool NextCfgType();

    // used by options dialog
    IntegerStringMap GetConfigList();
    IntegerStringMap GetModemPorts();
    IntegerStringMap GetModemTypes();
    IntegerStringMap GetCallTypes();

    enum {
        CALLTYPE_DIGITAL, CALLTYPE_ANALOG, CALLTYPE_IP
    };

    /* public variables */
    int m_nCallType;
    int m_nCfgType;

    bool cfgSupportsAnalog();
    bool cfgSupportsDigital();
};

#define __CONFIGMANAGER_H__
#endif

